<template>
	<view>
		<u-navbar :border-bottom="false" :title="name" :title-size="36" :title-bold="true" :title-color="textColor" :background="{background: bgColor}"></u-navbar>
		<view class="u-p-r-35" style="white-space: pre-wrap;">
			<u-parse :html="content"></u-parse>
		</view>
		<!--页面加载动画-->
		<akLoading isFullScreen :active="loading"></akLoading>
	</view>
</template>

<script>
	import { Base64 } from 'js-base64';
	export default {
		data() {
			return {
				loading: true,
				id: '',
				name: '',
				content: ''
			}
		},
		async onLoad(options) {
			this.id = options.id
			this.name = options.name
			await this.getTextContentByIdApp()
			this.loading = false
		},
		methods: {
			async getTextContentByIdApp() {
				const res = await this.$http.get('api/Text/GetTextContentByIdApp', { params: { id:this.id } })
				this.content = Base64.decode(res);
				
			}
		} 
	}
</script>

<style>
	page {
		background-color: #FFFFFF;
	}
</style>
<style>
</style>
